package
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.PixelSnapping;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.geom.Matrix;
	import flash.text.TextField;


	public class AlertButton extends ImageSprite
	{
		private var alertText:TextField = new TextField();
		private var text:String;
		public function AlertButton()
		{
		}
		public function showAlert(str:String):void{
			this.visible=true;
			alertText = Formatting.newSubtitle(str, 0xFFFFFF, 70, 10, 150, 100);
			addChild(alertText);
			this.addEventListener(MouseEvent.CLICK,close);
		}
		public function close(e:MouseEvent):void{
			this.visible=false;
		}
		
	}
}